import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import {DeviceListPage} from "../device-list/device-list";

/**
 * Generated class for the CreateScenePage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */

@IonicPage()
@Component({
  selector: 'page-create-scene',
  templateUrl: 'create-scene.html',
})
export class CreateScenePage {

  new_scene_name = '';
  new_scene_icon:any;

  press = 0;

  constructor(public navCtrl: NavController, public navParams: NavParams) {

  }

  ionViewDidLoad() {

  }
  pressEvent(e,n){
    document.getElementById('dev'+ n).style.color = 'white';
    document.getElementById('devname'+ n).style.color = 'white';
  }

  goto_device(){
    // this.navCtrl.popToRoot();
    this.navCtrl.push(DeviceListPage);
  }
}
